package fundamentals;

public class CallByReference2 {

	public static void main(String[] args) {
		A a = new A();
		System.out.println("main1: " + a);
		change(a);
		System.out.println("main2: " + a);
	}
	
	static void change(A a)  {
		a = new A();
		System.out.println("change: " + a);
	}
	
	static class A {
		
	}
	
}
